package com.bingwang.sourcelearn.qualifier;

import com.bingwang.sourcelearn.qualifier.config.AppConfig;
import com.bingwang.sourcelearn.qualifier.service.DataQueryService;
import com.bingwang.sourcelearn.utils.ContextUtil;
import org.springframework.context.ApplicationContext;

/**
 * @author WangBing
 * @date 2024/6/16 22:24
 */
public class TestQualifierMain {
    public static void main(String[] args) {
        ApplicationContext acx = ContextUtil.getContext(AppConfig.class);
        DataQueryService dataQueryService = acx.getBean(DataQueryService.class);
        dataQueryService.loadData("mysql");
    }
}
